#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/tutorial.class.php';
su('admin');

/**

title=测试 tutorialModel->getProduct();
cid=1
pid=1

测试是否能拿到数据 >> 1
测试是否能拿到数据 >> Test branch

*/

$tutorial = new tutorialTest();

r($tutorial->getProductTest()) && p('id')         && e('1');           //测试是否能拿到数据
r($tutorial->getProductTest()) && p('branches:1') && e('Test branch'); //测试是否能拿到数据